package com.pnnd.stream;

import sun.reflect.generics.reflectiveObjects.NotImplementedException;

import java.util.List;

public class ReadOnlyBufferView extends BufferView {

    public ReadOnlyBufferView(List<MemorySegment> segments, int length, int firstSegmentOffset) {
        super(segments, length, firstSegmentOffset);
    }

    @Override
    public BufferView put(byte b) {
        throw new NotImplementedException();
    }

    @Override
    public BufferView put(int index, byte b) {
        throw new NotImplementedException();
    }

    @Override
    public boolean isReadOnly() {
        return true;
    }

    @Override
    public BufferView putChar(char value) {
        throw new NotImplementedException();
    }

    @Override
    public BufferView putInt(int value) {
        throw new NotImplementedException();
    }

    @Override
    public BufferView putLong(long value) {
        throw new NotImplementedException();
    }

    @Override
    public BufferView putShort(short value) {
        throw new NotImplementedException();
    }

    @Override
    public BufferView putDouble(double value) {
        throw new NotImplementedException();
    }

    @Override
    public BufferView putFloat(float value) {
        throw new NotImplementedException();
    }
}
